Optimal. Leaf size=121 \[ -\frac {A}{4 b^3 x^4}-\frac {b B-3 A c}{2 b^4 x^2}-\frac {c (b B-A c)}{4 b^3 \left (b+c x^2\right )^2}-\frac {c (2 b B-3 A c)}{2 b^4 \left (b+c x^2\right )}-\frac {3 c (b B-2 A c) \log (x)}{b^5}+\frac {3 c (b B-2 A c) \log \left (b+c x^2\right )}{2 b^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {1598, 457, 78}
\begin {gather*} \frac {3 c (b B-2 A c) \log \left (b+c x^2\right )}{2 b^5}-\frac {3 c \log (x) (b B-2 A c)}{b^5}-\frac {c (2 b B-3 A c)}{2 b^4 \left (b+c x^2\right )}-\frac {b B-3 A c}{2 b^4 x^2}-\frac {c (b B-A c)}{4 b^3 \left (b+c x^2\right )^2}-\frac {A}{4 b^3 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 457
Rule 1598
Rubi steps
\begin {align*} \int \frac {x \left (A+B x^2\right )}{\left (b x^2+c x^4\right )^3} \, dx &=\int \frac {A+B x^2}{x^5 \left (b+c x^2\right )^3} \, dx\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{x^3 (b+c x)^3} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {A}{b^3 x^3}+\frac {b B-3 A c}{b^4 x^2}-\frac {3 c (b B-2 A c)}{b^5 x}+\frac {c^2 (b B-A c)}{b^3 (b+c x)^3}+\frac {c^2 (2 b B-3 A c)}{b^4 (b+c x)^2}+\frac {3 c^2 (b B-2 A c)}{b^5 (b+c x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {A}{4 b^3 x^4}-\frac {b B-3 A c}{2 b^4 x^2}-\frac {c (b B-A c)}{4 b^3 \left (b+c x^2\right )^2}-\frac {c (2 b B-3 A c)}{2 b^4 \left (b+c x^2\right )}-\frac {3 c (b B-2 A c) \log (x)}{b^5}+\frac {3 c (b B-2 A c) \log \left (b+c x^2\right )}{2 b^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 108, normalized size = 0.89 \begin {gather*} \frac {-\frac {A b^2}{x^4}-\frac {2 b (b B-3 A c)}{x^2}+\frac {b^2 c (-b B+A c)}{\left (b+c x^2\right )^2}+\frac {2 b c (-2 b B+3 A c)}{b+c x^2}+12 c (-b B+2 A c) \log (x)+6 c (b B-2 A c) \log \left (b+c x^2\right )}{4 b^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.39, size = 123, normalized size = 1.02
method | result | size |
default | \(-\frac {c^{2} \left (\frac {\left (6 A c -3 B b \right ) \ln \left (c \,x^{2}+b \right )}{c}-\frac {b^{2} \left (A c -B b \right )}{2 c \left (c \,x^{2}+b \right )^{2}}-\frac {b \left (3 A c -2 B b \right )}{c \left (c \,x^{2}+b \right )}\right )}{2 b^{5}}-\frac {A}{4 b^{3} x^{4}}-\frac {-3 A c +B b}{2 b^{4} x^{2}}+\frac {3 c \left (2 A c -B b \right ) \ln \left (x \right )}{b^{5}}\) | \(123\) |
norman | \(\frac {-\frac {A x}{4 b}+\frac {\left (2 A c -B b \right ) x^{3}}{2 b^{2}}-\frac {c \left (6 A \,c^{2}-3 b B c \right ) x^{7}}{b^{4}}-\frac {c^{2} \left (18 A \,c^{2}-9 b B c \right ) x^{9}}{4 b^{5}}}{x^{5} \left (c \,x^{2}+b \right )^{2}}+\frac {3 c \left (2 A c -B b \right ) \ln \left (x \right )}{b^{5}}-\frac {3 c \left (2 A c -B b \right ) \ln \left (c \,x^{2}+b \right )}{2 b^{5}}\) | \(124\) |
risch | \(\frac {\frac {3 c^{2} \left (2 A c -B b \right ) x^{6}}{2 b^{4}}+\frac {9 c \left (2 A c -B b \right ) x^{4}}{4 b^{3}}+\frac {\left (2 A c -B b \right ) x^{2}}{2 b^{2}}-\frac {A}{4 b}}{x^{4} \left (c \,x^{2}+b \right )^{2}}+\frac {6 c^{2} \ln \left (x \right ) A}{b^{5}}-\frac {3 c \ln \left (x \right ) B}{b^{4}}-\frac {3 c^{2} \ln \left (c \,x^{2}+b \right ) A}{b^{5}}+\frac {3 c \ln \left (c \,x^{2}+b \right ) B}{2 b^{4}}\) | \(129\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 137, normalized size = 1.13 \begin {gather*} -\frac {6 \, {\left (B b c^{2} - 2 \, A c^{3}\right )} x^{6} + 9 \, {\left (B b^{2} c - 2 \, A b c^{2}\right )} x^{4} + A b^{3} + 2 \, {\left (B b^{3} - 2 \, A b^{2} c\right )} x^{2}}{4 \, {\left (b^{4} c^{2} x^{8} + 2 \, b^{5} c x^{6} + b^{6} x^{4}\right )}} + \frac {3 \, {\left (B b c - 2 \, A c^{2}\right )} \log \left (c x^{2} + b\right )}{2 \, b^{5}} - \frac {3 \, {\left (B b c - 2 \, A c^{2}\right )} \log \left (x^{2}\right )}{2 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 229 vs.
\(2 (111) = 222\).
time = 1.59, size = 229, normalized size = 1.89 \begin {gather*} -\frac {6 \, {\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} x^{6} + A b^{4} + 9 \, {\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} x^{4} + 2 \, {\left (B b^{4} - 2 \, A b^{3} c\right )} x^{2} - 6 \, {\left ({\left (B b c^{3} - 2 \, A c^{4}\right )} x^{8} + 2 \, {\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} x^{6} + {\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} x^{4}\right )} \log \left (c x^{2} + b\right ) + 12 \, {\left ({\left (B b c^{3} - 2 \, A c^{4}\right )} x^{8} + 2 \, {\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} x^{6} + {\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} x^{4}\right )} \log \left (x\right )}{4 \, {\left (b^{5} c^{2} x^{8} + 2 \, b^{6} c x^{6} + b^{7} x^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.65, size = 136, normalized size = 1.12 \begin {gather*} \frac {- A b^{3} + x^{6} \cdot \left (12 A c^{3} - 6 B b c^{2}\right ) + x^{4} \cdot \left (18 A b c^{2} - 9 B b^{2} c\right ) + x^{2} \cdot \left (4 A b^{2} c - 2 B b^{3}\right )}{4 b^{6} x^{4} + 8 b^{5} c x^{6} + 4 b^{4} c^{2} x^{8}} - \frac {3 c \left (- 2 A c + B b\right ) \log {\left (x \right )}}{b^{5}} + \frac {3 c \left (- 2 A c + B b\right ) \log {\left (\frac {b}{c} + x^{2} \right )}}{2 b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.08, size = 132, normalized size = 1.09 \begin {gather*} -\frac {3 \, {\left (B b c - 2 \, A c^{2}\right )} \log \left ({\left | x \right |}\right )}{b^{5}} + \frac {3 \, {\left (B b c^{2} - 2 \, A c^{3}\right )} \log \left ({\left | c x^{2} + b \right |}\right )}{2 \, b^{5} c} - \frac {6 \, B b c^{2} x^{6} - 12 \, A c^{3} x^{6} + 9 \, B b^{2} c x^{4} - 18 \, A b c^{2} x^{4} + 2 \, B b^{3} x^{2} - 4 \, A b^{2} c x^{2} + A b^{3}}{4 \, {\left (c x^{4} + b x^{2}\right )}^{2} b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.17, size = 131, normalized size = 1.08 \begin {gather*} \frac {\frac {x^2\,\left (2\,A\,c-B\,b\right )}{2\,b^2}-\frac {A}{4\,b}+\frac {3\,c^2\,x^6\,\left (2\,A\,c-B\,b\right )}{2\,b^4}+\frac {9\,c\,x^4\,\left (2\,A\,c-B\,b\right )}{4\,b^3}}{b^2\,x^4+2\,b\,c\,x^6+c^2\,x^8}-\frac {\ln \left (c\,x^2+b\right )\,\left (6\,A\,c^2-3\,B\,b\,c\right )}{2\,b^5}+\frac {\ln \left (x\right )\,\left (6\,A\,c^2-3\,B\,b\,c\right )}{b^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________